From: Claudio Cambra Date: Wed, 26 Feb 2025 02:15:54 +0000 (+0800) Subject: gui/macOS: Reimplement sync button more subtly within the sync status component X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~2^2~13^2~2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=3dcc438b7152a6cc64457f7d4d60a2ed6c41a8c4;p=nextcloud-desktop.git gui/macOS: Reimplement sync button more subtly within the sync status component Signed-off-by: Claudio Cambra --- diff --git a/src/gui/macOS/ui/FileProviderSettings.qml b/src/gui/macOS/ui/FileProviderSettings.qml index 7ffee4d4f..98a437cd5 100644 --- a/src/gui/macOS/ui/FileProviderSettings.qml +++ b/src/gui/macOS/ui/FileProviderSettings.qml @@ -79,6 +79,7 @@ Page { FileProviderSyncStatus { syncStatus: root.controller.domainSyncStatusForAccount(root.accountUserIdAtHost) + onDomainSignalRequested: root.controller.signalFileProviderDomain(root.accountUserIdAtHost) } FileProviderFastEnumerationSettings { diff --git a/src/gui/macOS/ui/FileProviderSyncStatus.qml b/src/gui/macOS/ui/FileProviderSyncStatus.qml index 11f093bbc..a02fe4401 100644 --- a/src/gui/macOS/ui/FileProviderSyncStatus.qml +++ b/src/gui/macOS/ui/FileProviderSyncStatus.qml @@ -25,6 +25,7 @@ import com.nextcloud.desktopclient 1.0 GridLayout { id: root + signal domainSignalRequested required property var syncStatus rows: syncStatus.syncing ? 2 : 1 @@ -64,4 +65,10 @@ GridLayout { value: root.syncStatus.fractionCompleted visible: root.syncStatus.syncing } + + Button { + text: qsTr("Request sync") + onClicked: root.controller.signalFileProviderDomain(root.accountUserIdAtHost) + visible: !root.syncStatus.syncing + } } \ No newline at end of file